﻿using System;

namespace DefaultValue
{
    class Program
    {
        static void Main(string[] args)
        {
            /**
             * 默认值信息
             * 
             * */
            Console.WriteLine(default(decimal));
            int d1 = default;
            decimal dc1 = default;
            double db1 = default;
            float df1 = default;

            Console.WriteLine("int 类型默认值" + d1);
            Console.WriteLine("decimal 类型默认值" + dc1);
            Console.WriteLine("double 类型默认值" + db1);
            Console.WriteLine("float 类型默认值" + df1);
        }

        private void TestLocalVariable()
        {
            int a;
            Console.WriteLine(a);
        }
    }
}
